const _import = require('../utils/view-import/' + process.env.NODE_ENV)

export default {
  routes: [
    {
      path: '/',
      redirect: '/person'
      // component: _import('index')
    },
    {
      path: '/person', // 人员档案
      component: _import('personFile/personFile')
    },
    {
      path: '/case', // 案件档案 所需参数：案件编号 {ajbh: '000000'}
      component: _import('caseFile/index'),
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/car', // 车辆档案
      component: _import('carFile/carFile')
    },
    {
      path: '/phone', // 手机档案
      component: _import('phone/index')
    },
    {
      path: '/qq', // QQ档案
      component: _import('qq/index')
    },
    {
      path: '/relativeDetail',
      component: _import('personFile/relativeDetail')
    },
    {
      path: '/converse-file-all',
      component: _import('phone/converse-file-all')
    },
    {
      path: '/friends-block-all',
      component: _import('phone/friends-block-all')
    },
    {
      path: '/sms-logs-file-all',
      component: _import('phone/sms-logs-file-all')
    },
    {
      path: '/track-block-all',
      component: _import('phone/track-block-all')
    },
    {
      path: '/friendDetail',
      component: _import('personFile/friendDetail')
    },
    {
      path: '/onlineDetail', // 上网详情
      component: _import('personFile/onlineDetail')
    },
    {
      path: '/liveDetail', // 住宿详情
      component: _import('personFile/liveDetail')
    },
    {
      path: '/allRecord', // 全部轨迹
      component: _import('personFile/allRecord')
    },
    {
      path: '/accompany', // 伴随详情
      component: _import('details/accompany')
    },
    {
      path: '/detail', // 通用详情页面
      component: _import('details/detail')
    },
    {
      path: '/subpage_spot/:xkbh', // 现场勘验
      component: _import('caseFile/subPageSpot')
    },
    {
      path: '/subpage_person', // 人员列表
      component: _import('caseFile/subPagePerson')
    },
    {
      path: '/subpage_object', // 物品列表
      component: _import('caseFile/subPageObject')
    },
    {
      path: '/subpage_car', // 卡口详情
      component: _import('carFile/subPageCar')
    },
    {
      path: '/vehicle', // 乘车详情
      component: _import('details/vehicleDetails')
    },
    {
      path: '/exitEntry', // 进出港详情
      component: _import('details/exitEntryDetails')
    },
    {
      path: '*',
      component: _import('404')
    },
    {
      path: '/tooltips',
      component: _import('caseFile/tooltips')
    }
  ]
}
